﻿@model Helper.Metadata.FilterCallMetadata
           
@{
    var optAjax = new AjaxOptions();
    optAjax.HttpMethod = "Post";
}

@using(Ajax.BeginForm("Index", "Call", new RouteValueDictionary(), optAjax)){
    <fieldset> 
        <legend>Pesquisa</legend>
        <table>
            <tr>
                <th class="editor-label">
                    @Html.LabelFor(model => model.Username)
                </th>
                <th class="editor-label">
                    @Html.LabelFor(model => model.Businessname)
                </th>
                <th>Período</th>
                <th></th>
            </tr>
            <tr>
                <td class="editor-field">
                    @Html.EditorFor(model => model.Username)
                </td>
                <td class="editor-field">
                    @Html.EditorFor(model => model.Businessname)
                </td>
                <td>@Html.EditorFor(model => model.InitialDate)</td>
                <td>@Html.EditorFor(model => model.FinalDate)</td>
            </tr>
        </table>
        <input type="submit" value="Pesquisar" />
        
    </fieldset>
}
